
package com.example.leakcanary

import android.app.Application
import android.app.Dialog
import android.app.Service
import android.view.View

open class ExampleApplication : Application() {
  val leakedViews = mutableListOf<View>()
  val leakedDialogs = mutableListOf<Dialog>()
  val leakedServices = mutableListOf<Service>()


  override fun onCreate() {
    super.onCreate()
    enabledStrictMode()
  }

  private fun enabledStrictMode() {
    /*StrictMode.setThreadPolicy(
      StrictMode.ThreadPolicy.Builder()
        .detectAll()
        .penaltyLog()
        .penaltyDeath()
        .build()
    )*/
  }

}
